Companion

public class Companion

Properties

Link copied to clipboard
public final static DeviceType.Companion INSTANCE

Functions

Link copied to clipboard

Helper method to find the DeviceType enum that corresponds to the name found during device advertisement. If an unknown name is provided, DeviceType.UNKNOWN is returned.

Link copied to clipboard
public final DeviceType findByByte(Byte byte)

Helper method to find the DeviceType enum that corresponds to a byte value. If an unknown byte value is provided, DeviceType.UNKNOWN is returned.

Link copied to clipboard
public final DeviceType findByInt(Integer value)

Helper method to find the DeviceType enum that corresponds to an integer value. If an unknown integer value is provided, DeviceType.UNKNOWN is returned.

Link copied to clipboard
public final DeviceType findByShortName(String name)

Helper method to find the DeviceType enum that corresponds to the device short name. If an unknown name is provided, DeviceType.UNKNOWN is returned.

Link copied to clipboard
public final DeviceType findByUsbPid(UsbDevice device)

Helper method to find the DeviceType enum that corresponds to the USB VID and PID of a USB device. If an unknown VID and PID combination is provided, DeviceType.UNKNOWN is returned